# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=yoshimi
pkgver=2.3.1.3
pkgrel=0
pkgdesc="Sophisticated software synthesizer"
url="https://yoshimi.github.io/"
arch="all"
license="GPL-2.0-or-later"
depends="fltk-fluid"
makedepends="
	alsa-lib-dev
	argp-standalone
	cairo-dev
	cmake
	fftw-dev
	fltk-dev
	fontconfig-dev
	jack-dev
	lv2-dev
	mesa-dev
	mxml-dev
	readline-dev
	samurai
	"
subpackages="$pkgname-doc"
source="https://github.com/Yoshimi/yoshimi/archive/$pkgver/yoshimi-$pkgver.tar.gz"
options="!check" # not sure if they even exist

build() {
	cmake -B build -G Ninja -S src \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5c8dd0fc7207d3356bbc5c5eae80a0ba9699fe5e6ff79eb889bf44be430e48e4bb959a43a88287e7e867f778e8870dc11927860b213e6bfd72a0309a77e15bb7  yoshimi-2.3.1.3.tar.gz
"
